package com.yonyougov.devops.cruxcisupport.k8s.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "删除某个命名空间下指定的Deployment")
public class PodBatchDelRestRequest {
    @ApiModelProperty(required = true, value = "环境名称")
    @NotEmpty
    private String envName;

    @ApiModelProperty(required = true, value = "应用名称列表")
    @NotNull
    private List<String> appNames;
}
